package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单商品对象 order_item
 * 
 * @author ruoyi
 * @date 2022-02-14
 */
public class OrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** uuid */
    private String id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long skuId;

    /** 商品购买数量 */
    @Excel(name = "商品购买数量")
    private Long num;

    /** 商品标题 */
    @Excel(name = "商品标题")
    private String title;

    /** 商品单价 */
    @Excel(name = "商品单价")
    private String price;

    /** 商品总金额 */
    @Excel(name = "商品总金额")
    private String totalFee;

    /** 商品图片地址 */
    @Excel(name = "商品图片地址")
    private String picPath;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer isDelete;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setSkuId(Long skuId) 
    {
        this.skuId = skuId;
    }

    public Long getSkuId() 
    {
        return skuId;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setTotalFee(String totalFee) 
    {
        this.totalFee = totalFee;
    }

    public String getTotalFee() 
    {
        return totalFee;
    }
    public void setPicPath(String picPath) 
    {
        this.picPath = picPath;
    }

    public String getPicPath() 
    {
        return picPath;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("skuId", getSkuId())
            .append("num", getNum())
            .append("title", getTitle())
            .append("price", getPrice())
            .append("totalFee", getTotalFee())
            .append("picPath", getPicPath())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
